package com.heantai.easystruts.config;

import java.util.HashMap;
import java.util.Map;

public class ActionBean {
	private String path;
	private String type;
	private String name;
	private String attribute;
	private String scope;
	private Map<String, ForwardBean> forwardBeans= new HashMap<String ,ForwardBean>();
	public void addForwardBean(ForwardBean forwardBean){
		forwardBeans.put(forwardBean.getName(), forwardBean);
	}
	public ForwardBean findForwardBean(String name){
		return forwardBeans.get(name);
	}
	public String getPath() {
		return path;
	}
	public String getType() {
		return type;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getName() {
		return name;
	}
	public String getAttribute() {
		return attribute;
	}
	public String getScope() {
		return scope;
	}
	public void setName(String name) {
		this.name = name;
	}
	public void setAttribute(String attribute) {
		this.attribute = attribute;
	}
	public void setScope(String scope) {
		this.scope = scope;
	}
	@Override
	public String toString() {
		return "ActionBean [attribute=" + attribute + ", forwardBeans="
				+ forwardBeans + ", name=" + name + ", path=" + path
				+ ", scope=" + scope + ", type=" + type + "]";
	}
}
